package com.deyou.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.deyou.DeYouApplication;
import com.deyou.R;
import com.deyou.model.CityBean;
import com.deyou.model.CollectionBean;
import com.deyou.widget.CircleImageView;
import com.zhy.autolayout.utils.AutoUtils;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by yangyuancheng on 2017/5/12.
 */

public class CityAdapter extends BaseQuickAdapter<CityBean, CityAdapter.ViewHolder> {
    private Context mContext;

    public CityAdapter(Context context) {
        super(R.layout.city_item);
        this.mContext = context;
    }

    @Override
    protected void convert(ViewHolder holder, CityBean item) {
        holder.tvCity.setText(item.regionName);
    }

    static class ViewHolder extends BaseViewHolder {
        @BindView(R.id.tv_city)
        TextView tvCity;

        ViewHolder(View view) {
            super(view);
            AutoUtils.autoSize(view);
            ButterKnife.bind(this, view);
        }
    }
}
